package com.runa.protocol.dto;

/**
 * @author zhuj
 */
class DtuHDRegisterAck extends DtuReportAck {

    DtuHDRegisterAck(String id) {
        data = new byte[16];
        data[0] = 0x7b;
        data[1] = (byte) 0x81;
        data[2] = (16 >> 8);
        data[3] = 16 & 0xff;
        byte[] code = id.getBytes();
        System.arraycopy(code, 0, data, 4, code.length);
        data[15] = 0x7b;
    }
}
